/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package funes.view;

import java.util.Observable;
import java.util.Observer;

/**
 *
 * @author USUARIO
 */
public class RegistroNuevoUsuario extends javax.swing.JFrame implements Observer{

    /**
     * Creates new form RegistroNuevoUsuario
     */
    public RegistroNuevoUsuario() {
        initComponents();
        //Cambio de contructor
        ///DENIS
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanelDatosIniciales = new javax.swing.JPanel();
        jLabelProvinciaEtiqueta = new javax.swing.JLabel();
        jLabelCedulaEtiqueta = new javax.swing.JLabel();
        jTextFieldCedula = new javax.swing.JTextField();
        jComboBoxProvincia = new javax.swing.JComboBox();
        jButtonBuscarPersona = new javax.swing.JButton();
        jPanelDatosGeneradosAutomaticamente = new javax.swing.JPanel();
        jLabelNombreEtiqueta = new javax.swing.JLabel();
        jTextFieldNombre = new javax.swing.JTextField();
        jLabelPrimerApellidoEtiqueta = new javax.swing.JLabel();
        jTextFieldPrimerApellido = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jTextFieldSegundoApellido = new javax.swing.JTextField();
        jLabelGeneroEtiqueta = new javax.swing.JLabel();
        jTextFieldGenero = new javax.swing.JTextField();
        jPanelDatosIngresados = new javax.swing.JPanel();
        jLabelFechaDeNacimientoEtiqueta = new javax.swing.JLabel();
        jComboBoxDiaNacimiento = new javax.swing.JComboBox();
        jTextFieldAnnoNacimiento = new javax.swing.JTextField();
        jComboBoxMesNacimiento = new javax.swing.JComboBox();
        jLabelEdadEtiqueta = new javax.swing.JLabel();
        jTextFieldEdad = new javax.swing.JTextField();
        jLabelLugarDeTrabajoEtiqueta = new javax.swing.JLabel();
        jTextFieldLugarDeTrabajo = new javax.swing.JTextField();
        jLabelCargoQueDesempenaEtiqueta = new javax.swing.JLabel();
        jTextFieldCargoQueDesempena = new javax.swing.JTextField();
        jPanel2 = new javax.swing.JPanel();
        jLabelNicknameEtiqueta = new javax.swing.JLabel();
        jTextFieldNickname = new javax.swing.JTextField();
        jLabelContrasenna = new javax.swing.JLabel();
        jPasswordFieldContrasenna = new javax.swing.JPasswordField();
        jButtonRegistrarse = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabelProvinciaEtiqueta.setText("Provincia: ");

        jLabelCedulaEtiqueta.setText("Cédula: ");

        jTextFieldCedula.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldCedulaActionPerformed(evt);
            }
        });

        jComboBoxProvincia.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "San José", "Alajuela", "Heredia", "Cartago", "Guanacaste", "Limón" }));

        jButtonBuscarPersona.setText("Buscar");
        jButtonBuscarPersona.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarPersonaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelDatosInicialesLayout = new javax.swing.GroupLayout(jPanelDatosIniciales);
        jPanelDatosIniciales.setLayout(jPanelDatosInicialesLayout);
        jPanelDatosInicialesLayout.setHorizontalGroup(
            jPanelDatosInicialesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosInicialesLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(jPanelDatosInicialesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelCedulaEtiqueta)
                    .addComponent(jLabelProvinciaEtiqueta))
                .addGap(49, 49, 49)
                .addGroup(jPanelDatosInicialesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jComboBoxProvincia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanelDatosInicialesLayout.createSequentialGroup()
                        .addComponent(jTextFieldCedula, javax.swing.GroupLayout.PREFERRED_SIZE, 234, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonBuscarPersona)))
                .addContainerGap(55, Short.MAX_VALUE))
        );
        jPanelDatosInicialesLayout.setVerticalGroup(
            jPanelDatosInicialesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosInicialesLayout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(jPanelDatosInicialesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelProvinciaEtiqueta)
                    .addComponent(jComboBoxProvincia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelDatosInicialesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelCedulaEtiqueta)
                    .addComponent(jTextFieldCedula, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonBuscarPersona))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabelNombreEtiqueta.setText("Nombre: ");

        jTextFieldNombre.setEditable(false);

        jLabelPrimerApellidoEtiqueta.setText("Primer apellido:");

        jTextFieldPrimerApellido.setEditable(false);

        jLabel1.setText("Segundo apellido:");

        jTextFieldSegundoApellido.setEditable(false);
        jTextFieldSegundoApellido.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldSegundoApellidoActionPerformed(evt);
            }
        });

        jLabelGeneroEtiqueta.setText("Género:");

        jTextFieldGenero.setEditable(false);

        jLabelFechaDeNacimientoEtiqueta.setText("Fecha de Nacimiento:");

        jComboBoxDiaNacimiento.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));

        jTextFieldAnnoNacimiento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldAnnoNacimientoActionPerformed(evt);
            }
        });

        jComboBoxMesNacimiento.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));

        jLabelEdadEtiqueta.setText("Edad: ");

        jTextFieldEdad.setEditable(false);
        jTextFieldEdad.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldEdadActionPerformed(evt);
            }
        });

        jLabelLugarDeTrabajoEtiqueta.setText("Lugar de trabajo:");

        jTextFieldLugarDeTrabajo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldLugarDeTrabajoActionPerformed(evt);
            }
        });

        jLabelCargoQueDesempenaEtiqueta.setText("Cargo: ");

        javax.swing.GroupLayout jPanelDatosIngresadosLayout = new javax.swing.GroupLayout(jPanelDatosIngresados);
        jPanelDatosIngresados.setLayout(jPanelDatosIngresadosLayout);
        jPanelDatosIngresadosLayout.setHorizontalGroup(
            jPanelDatosIngresadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosIngresadosLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(jPanelDatosIngresadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelDatosIngresadosLayout.createSequentialGroup()
                        .addGroup(jPanelDatosIngresadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelDatosIngresadosLayout.createSequentialGroup()
                                .addComponent(jLabelFechaDeNacimientoEtiqueta)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jComboBoxDiaNacimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jComboBoxMesNacimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanelDatosIngresadosLayout.createSequentialGroup()
                                .addComponent(jLabelEdadEtiqueta)
                                .addGap(71, 71, 71)
                                .addComponent(jTextFieldEdad, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jTextFieldAnnoNacimiento, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelDatosIngresadosLayout.createSequentialGroup()
                        .addGroup(jPanelDatosIngresadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelLugarDeTrabajoEtiqueta)
                            .addComponent(jLabelCargoQueDesempenaEtiqueta))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanelDatosIngresadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jTextFieldLugarDeTrabajo, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE)
                            .addComponent(jTextFieldCargoQueDesempena))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelDatosIngresadosLayout.setVerticalGroup(
            jPanelDatosIngresadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosIngresadosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelDatosIngresadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelFechaDeNacimientoEtiqueta)
                    .addComponent(jComboBoxDiaNacimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBoxMesNacimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldAnnoNacimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelDatosIngresadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelEdadEtiqueta)
                    .addComponent(jTextFieldEdad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelDatosIngresadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelLugarDeTrabajoEtiqueta)
                    .addComponent(jTextFieldLugarDeTrabajo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelDatosIngresadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelCargoQueDesempenaEtiqueta)
                    .addComponent(jTextFieldCargoQueDesempena, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanelDatosGeneradosAutomaticamenteLayout = new javax.swing.GroupLayout(jPanelDatosGeneradosAutomaticamente);
        jPanelDatosGeneradosAutomaticamente.setLayout(jPanelDatosGeneradosAutomaticamenteLayout);
        jPanelDatosGeneradosAutomaticamenteLayout.setHorizontalGroup(
            jPanelDatosGeneradosAutomaticamenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosGeneradosAutomaticamenteLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(jPanelDatosGeneradosAutomaticamenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelPrimerApellidoEtiqueta)
                    .addComponent(jLabelNombreEtiqueta)
                    .addComponent(jLabelGeneroEtiqueta)
                    .addComponent(jLabel1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanelDatosGeneradosAutomaticamenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jTextFieldSegundoApellido)
                    .addComponent(jTextFieldPrimerApellido)
                    .addComponent(jTextFieldGenero, javax.swing.GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)
                    .addComponent(jTextFieldNombre, javax.swing.GroupLayout.Alignment.TRAILING))
                .addGap(148, 148, 148))
            .addComponent(jPanelDatosIngresados, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPanelDatosGeneradosAutomaticamenteLayout.setVerticalGroup(
            jPanelDatosGeneradosAutomaticamenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosGeneradosAutomaticamenteLayout.createSequentialGroup()
                .addGap(18, 18, 18)
                .addGroup(jPanelDatosGeneradosAutomaticamenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNombreEtiqueta)
                    .addComponent(jTextFieldNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelDatosGeneradosAutomaticamenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelPrimerApellidoEtiqueta)
                    .addComponent(jTextFieldPrimerApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelDatosGeneradosAutomaticamenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(jTextFieldSegundoApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelDatosGeneradosAutomaticamenteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelGeneroEtiqueta)
                    .addComponent(jTextFieldGenero, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanelDatosIngresados, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabelNicknameEtiqueta.setText("Nickname: ");

        jTextFieldNickname.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldNicknameActionPerformed(evt);
            }
        });

        jLabelContrasenna.setText("Contraseña:");

        jButtonRegistrarse.setText("Registrarse");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelNicknameEtiqueta)
                    .addComponent(jLabelContrasenna))
                .addGap(34, 34, 34)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jTextFieldNickname)
                    .addComponent(jPasswordFieldContrasenna, javax.swing.GroupLayout.DEFAULT_SIZE, 218, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jButtonRegistrarse)
                .addGap(23, 23, 23))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNicknameEtiqueta)
                    .addComponent(jTextFieldNickname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelContrasenna)
                    .addComponent(jPasswordFieldContrasenna, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 16, Short.MAX_VALUE)
                .addComponent(jButtonRegistrarse)
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanelDatosIniciales, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanelDatosGeneradosAutomaticamente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(56, 56, 56)
                .addComponent(jPanelDatosIniciales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelDatosGeneradosAutomaticamente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(19, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jTextFieldCedulaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldCedulaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextFieldCedulaActionPerformed

    private void jTextFieldSegundoApellidoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldSegundoApellidoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextFieldSegundoApellidoActionPerformed

    private void jButtonBuscarPersonaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarPersonaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonBuscarPersonaActionPerformed

    private void jTextFieldAnnoNacimientoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldAnnoNacimientoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextFieldAnnoNacimientoActionPerformed

    private void jTextFieldEdadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldEdadActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextFieldEdadActionPerformed

    private void jTextFieldLugarDeTrabajoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldLugarDeTrabajoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextFieldLugarDeTrabajoActionPerformed

    private void jTextFieldNicknameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldNicknameActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextFieldNicknameActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(RegistroNuevoUsuario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(RegistroNuevoUsuario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(RegistroNuevoUsuario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(RegistroNuevoUsuario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new RegistroNuevoUsuario().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonBuscarPersona;
    private javax.swing.JButton jButtonRegistrarse;
    private javax.swing.JComboBox jComboBoxDiaNacimiento;
    private javax.swing.JComboBox jComboBoxMesNacimiento;
    private javax.swing.JComboBox jComboBoxProvincia;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabelCargoQueDesempenaEtiqueta;
    private javax.swing.JLabel jLabelCedulaEtiqueta;
    private javax.swing.JLabel jLabelContrasenna;
    private javax.swing.JLabel jLabelEdadEtiqueta;
    private javax.swing.JLabel jLabelFechaDeNacimientoEtiqueta;
    private javax.swing.JLabel jLabelGeneroEtiqueta;
    private javax.swing.JLabel jLabelLugarDeTrabajoEtiqueta;
    private javax.swing.JLabel jLabelNicknameEtiqueta;
    private javax.swing.JLabel jLabelNombreEtiqueta;
    private javax.swing.JLabel jLabelPrimerApellidoEtiqueta;
    private javax.swing.JLabel jLabelProvinciaEtiqueta;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanelDatosGeneradosAutomaticamente;
    private javax.swing.JPanel jPanelDatosIngresados;
    private javax.swing.JPanel jPanelDatosIniciales;
    private javax.swing.JPasswordField jPasswordFieldContrasenna;
    private javax.swing.JTextField jTextFieldAnnoNacimiento;
    private javax.swing.JTextField jTextFieldCargoQueDesempena;
    private javax.swing.JTextField jTextFieldCedula;
    private javax.swing.JTextField jTextFieldEdad;
    private javax.swing.JTextField jTextFieldGenero;
    private javax.swing.JTextField jTextFieldLugarDeTrabajo;
    private javax.swing.JTextField jTextFieldNickname;
    private javax.swing.JTextField jTextFieldNombre;
    private javax.swing.JTextField jTextFieldPrimerApellido;
    private javax.swing.JTextField jTextFieldSegundoApellido;
    // End of variables declaration//GEN-END:variables

    @Override
    public void update(Observable emisor, Object mensaje) {
        
    }
}
